<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <meta name="verify-v1" content="SdRBVon6ibGV9Yn8T4djlPA2rnPl3wPKoyMFoL5qIpk=" />  {% block description %}
  {% endblock %}
  <title>
  {% if blog %}
    {{ blog.title|escape }}
  {% else %}
    {% if tag %}{{ tag|escape }} - {% endif %}{{ config.site_title }}
  {% endif %}
  </title>
  <link href="{{config.url_blog}}/rss/{% if tag %}?tag={{tag|encode|urlencode}}{% endif %}" rel="alternate" type="application/rss+xml" title={{ config.header_title }}/>
  <link rel="stylesheet" type="text/css" href="/{{ config.url_themes }}/{{ config.theme }}/style.css">
  {% include "scripts.html" %}
  {% block head %}
  {% endblock %}
</head>

<body>
<div id="header">
  <div id="logo">
    <h1><a href="/">{{ config.header_title }}<sup></sup></a></h1>
    <h2>{{ config.site_description }}</h2>
  </div>  
  
  <div id="menu">
    <ul>
      <li class="active"><a href="/">{{ lang.home }}</a></li>
      
      {% if ytblog_use_promotion %}
      <li><a href="{{config.url_blog}}/all/">{{ lang.all_blogs }}</a></li>
      {% endif %}
      
      
		  {% if auth.add %}
		  <li><a href="{{config.url_blog}}/add/">{{ lang.blog_add }}</a></li>
		  <li><a href="{{config.url_blog}}/my/">{{ lang.my_blog }}</a></li>
		  {% endif %}      
    
      <li>  
      {% if user %}
		  <a href="{{ url }}">{{ lang.logout }}</a>  
		  {% else %}
		  <a href="{{ url }}">{{ lang.login }}</a>
		  {% endif %}
   		</li>
    </ul>
  </div>
  
</div>

{% for plugin in plugins_top %}
{% include plugin.config.view_path %}
{% endfor %}

<div style="clear: both;"></div>

<div id="page">
<div id="content">
  {% block content %}
  {% endblock %}
  <script type="text/javascript">
    dp.SyntaxHighlighter.ClipboardSwf = '/{{ config.url_js }}/syntaxhighlighter/clipboard.swf';
    dp.SyntaxHighlighter.HighlightAll('code');
  </script> 
</div>
{% include "left.html" %}

</div>
<div style="clear: both;"></div>

{% for plugin in plugins_bottom %}
{% include plugin.config.view_path %}
{% endfor %}

</body>
</html>